package com.dianping.cat.alarm.server.entity;

import com.dianping.cat.alarm.server.BaseEntity;
import com.dianping.cat.alarm.server.IVisitor;





public class SubCondition
  extends BaseEntity<SubCondition>
{
  private String m_type;
  private String m_value;

/* 16 */   public void accept(IVisitor visitor) { visitor.visitSubCondition(this); }



  public boolean equals(Object obj) {
/* 21 */     if (obj instanceof SubCondition) {
/* 22 */       SubCondition _o = (SubCondition)obj;

/* 24 */       if (!equals(getType(), _o.getType())) {
/* 25 */         return false;
      }

/* 28 */       if (!equals(getValue(), _o.getValue())) {
/* 29 */         return false;
      }


/* 33 */       return true;
    }

/* 36 */     return false;
  }


/* 40 */   public String getType() { return this.m_type; }



/* 44 */   public String getValue() { return this.m_value; }
/*    */




  public void mergeAttributes(SubCondition other) {
/* 59 */     if (other.getType() != null) {
/* 60 */       this.m_type = other.getType();
    }

/* 63 */     if (other.getValue() != null) {
/* 64 */       this.m_value = other.getValue();
    }
  }

  public SubCondition setType(String type) {
/* 69 */     this.m_type = type;
/* 70 */     return this;
  }

  public SubCondition setValue(String value) {
/* 74 */     this.m_value = value;
/* 75 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/server/entity/SubCondition.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */